package com.pro.xwt.common.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.pro.xwt.common.mapper.DFileMapper;import com.pro.xwt.common.model.DFile;
import com.pro.xwt.common.service.DFileService;
@Service("dFileService")
public class DFileServiceImpl extends AbstractService<DFile, String> implements DFileService {
	@Autowired
	DFileMapper dFileMapper;


	public int upload(DFile dFile) {
		dFile.setDeleteState("0");
		
		int flag = dFileMapper.insert(dFile);
		
		return flag;
	}

	public List<DFile> findByProjId(String id) {
		return dFileMapper.findByProjId(id);
	}

	public List<DFile> findSubFileByParentId(String id) {
		return dFileMapper.findSubFileByParentId(id);
	}

}
